
<div id="header">
    <h1><a href="./index.html">无线路由管理平台</a></h1>
</div>

<div id="user-nav" class="navbar navbar-inverse">

    <ul class="nav btn-group">
        <li class="btn btn-danger"><a  href="index.html">
            <i class="icon  icon-user"></i> <span class="text">欢迎您：<%if(typeof(retdata.nickname)!=="undefined"){%><%=retdata.nickname%><%}%></span></a>
        </li>

        <li class="btn btn-danger"><a class=" tip-bottom" title="操作日志" href="operlog.html">
            <i class="icon  icon-list"></i> <span class="text">操作日志</span></a>
        </li>

        <li class="btn btn-danger"><a class=" tip-bottom" title="个人设置" href="modifypwd.html">
            <i class="icon  icon-cog"></i> <span class="text">个人设置</span></a>
        </li>

        <li class="btn btn-danger"><a class=" tip-bottom" title="退出平台" href="logout">
            <i class="icon  icon-off"></i> <span class="text">退出平台</span></a>
        </li>
    </ul>
</div>

<div id="sidebar">

    <a href="#" class="visible-phone"><i class="icon icon-th-list"></i> 系统菜单</a>

    <ul>
        <%if(retdata.title=="控制台"){%>
        <li  class="active">
            <%}else{%>
        <li>
            <%}%><a href="index.html"><i class="icon icon-home"></i> <span>控制台</span></a></li>

        <%if(typeof(retdata.roleinfo)!=="undefined" && !!retdata.roleinfo){%>
        <%if(typeof(retdata.roleinfo.flag)!=="undefined" && !!retdata.roleinfo.flag && retdata.roleinfo.flag=="99"
        || retdata.roleinfo.flag=="1"){%>
        <!-- 如果是系统管理员允许访问 -->
            <%if(retdata.title=="权限管理"){%>
            <li class="submenu open">
            <%}else{%>
            <li class="submenu">
            <%}%>
                <a href="#"><i class="icon icon-cog"></i> <span>权限管理</span> </a>
                <ul>
                    <%if(retdata.roleinfo.flag=="99" ){%>
                    <li><a href="roleadmin.html">权限分级设置</a></li>
                    <%}%>
                    <li><a href="useradmin.html">代理商/商户管理</a></li>
                </ul>
            </li>
        <%}}%>

        <%if(retdata.roleinfo.flag=="99" ){%>
            <%if(retdata.title=="通知/告警管理"){%>
            <li  class="active">
            <%}else{%>
            <li>
            <%}%>
            <a href="notifyadmin.html"><i class="icon  icon-bullhorn"></i> <span>通知/告警管理</span></a></li>
        <%}%>



        <%if(retdata.title=="基本配置"){%>
        <li class="submenu open">
        <%}else{%>
        <li class="submenu">
        <%}%>
            <a href="#"><i class="icon icon-signal"></i> <span>基本配置</span> </a>
            <ul>
                <li><a href="wifiadmin.html">WiFi热点配置</a></li>
                <li><a href="setbindap.html">设备绑定配置</a></li>
            </ul>
        </li>


        <%if(retdata.title!=="广告服务设置"){%>
        <li class="submenu">
        <%}else{%>
        <li class="submenu open">
        <%}%>
            <a href="#"><i class="icon icon-file"></i> <span>广告服务设置</span> </a>
            <ul>
                <li><a href="setwifi.html">手机&终端广告配置</a></li>
                <li><a href="setbindap.html">可编辑HTML广告配置</a></li>
            </ul>
        </li>

        <%if(retdata.title!=="广告服务设置"){%>
        <li class="submenu">
            <%}else{%>
        <li class="submenu open">
            <%}%>
            <a href="#"><i class="icon icon-user"></i> <span>顾客管理</span> </a>
            <ul>
                <li><a href="querycustinfo.html">顾客信息查询</a></li>
                <li><a href="querycustlog.html">顾客访问查询</a></li>
            </ul>
        </li>

        <li class="submenu">
            <a href="#"><i class="icon icon-th-list"></i> <span>看看我的流量</span>  </a>
            <ul>
                <li><a href="statadvisit.html">我的广告点击</a></li>
                <li><a href="statcustsrc.html">我的顾客上网方式统计</a></li>
            </ul>
        </li>
    </ul>
</div>

<div id="style-switcher">
    <i class="icon-arrow-left icon-white"></i>
    <span>颜色风格:</span>
    <a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
    <a href="#blue" style="background-color: #2D2F57;"></a>
    <a href="#red" style="background-color: #673232;"></a>
</div>

